﻿using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

[assembly: HostingStartup(typeof(FriendFunny.HostingStartup))]
namespace FriendFunny;

/// <summary>
/// 配置程序启动时自动注入
/// </summary>
public class HostingStartup : IHostingStartup
{
    /// <summary>
    /// 通过承载启动程序集，在启动时设置全局静态类GlobalApp
    /// </summary>
    /// <param name="builder"></param>
    public void Configure(IWebHostBuilder builder)
    {
        GlobalApp.ConfigureServices(builder);
    }
}